package com.nuesoft.acquisition.sensor.product.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Random;

@Data

@AllArgsConstructor
@ToString
public class Monitor {
    private static final Random RANDOM = new Random();
    private  String serialNumber ="1001";
    private  String bloodOxygen = "9";
    private  String bloodPressure ="80,121" ;
    private  String heartRate ="7" ;

    public   Monitor() {
//        this.serialNumber =  this.serialNumber +  String.valueOf( RANDOM.nextInt(10));
        this.bloodOxygen = this.getBloodOxygen() + String.valueOf( RANDOM.nextInt(10));
        this.bloodPressure =  "8"  + String.valueOf( RANDOM.nextInt(10))+"," + "12" +
        String.valueOf( RANDOM.nextInt(10));
        this.heartRate = this.getHeartRate() + String.valueOf( RANDOM.nextInt(10));
    }
}
